﻿@model MyPS.Models.ArticleModel
@{
    ViewBag.Title = "文章中心";
}
@Styles.Render("~/Content/PageHandler.css")
@Scripts.Render("~/Scripts/jQuery.tmpl.min.js")
@Scripts.Render("~/Scripts/pageHandler.js")
@Scripts.Render("~/Scripts/m_script/pageHandler.js")
<script type="text/x-jquery-tmpl" id="tmpArticles">
         <li><a href="/Article/ArticleDetail/${ArticleID}" target="_blank" title="${ArticleName}">${ArticleName}</a><span><font
                        style="color: #F4942E">${CreateDate}</font>(${ReadCount}阅读)</span></li>
</script>
<script type="text/javascript">
    var c_page = "article";
    var page = new pageHandler({ pageID: "divPage", url: "/AjaxRequest/GetArticleList", tmplID: "tmpArticles", contentID: "ulArticleList" }, {})
    $(document).ready(function () {
        page.pageInit();
        $(".a_classify").click(function () {
            var type = $(this).attr("title");
            page.urldata = { type: type };
            page.pageInit();
            return false;
        });
    })
</script>
<!-- flash开始-->
<div class="flashshow">
    <img src="/images/neiye.jpg" width="980" height="200" />
</div>
<!-- flash结束-->
<!--主体部分开始-->
<div id="w980a" class="p10">
    <!--主体部分一-->
    <div class="allsidebar fl">
        <h3>
            文章分类<span>ARTICLE classify</span></h3>
        <div class="allsidebarinner">
            <ul class="classify-ul">
                @foreach (var item in Model.ArticleTypeList)
                { 
                    <li><a class="a_classify" href="#" target="_blank" title="@item.TypeName">@item.TypeName</a></li>  
                }
            </ul>
            <div class="contactus">
                <h3>
                    联系我们<span>CONTACT us</span></h3>
                <div class="contactusinner">
                    <span>工作时间：9:00-18:00</span><br />
                    <span>服务电话：15883827208</span><br />
                    <span>客服Q Q：249846170</span><br />
                    <span>Email：91ps@163.com</span><br />
                    <a target="_blank" href=" http://wpa.qq.com/msgrd?v=3&uin=249846170号&site=qq&menu=yes">
                        <img border="0" src="images/qq.jpg" alt="点击这里给我发消息" title="点击这里给我发消息" class="p10"></a>
                </div>
            </div>
        </div>
    </div>
    <div class="allmaincontent fl">
        <h3>
            文章中心<span>ARTICLE center</span></h3>
        <div class="allmaincontentinner">
            @foreach (var item in Model.ArticleList)
            {    <div class="newstop">
                <a href="/Article/ArticleDetail/@item.ID" title="@item.Name">
                    <img src="@item.CoverUrl" width="116" height="86" class="fl" />
                    <h4>
                        @item.Name</h4>
                    <p>
                        @(item.Summary)...<span style="color: red">查看详情&gt;&gt;</span></p>
                </a>
            </div>
            
            }
            <div class="newslist">
                <ul id="ulArticleList">
                </ul>
            </div>
            <div id="divPage" class="page">
            </div>
        </div>
        <div class="yourposition">
            当前位置：<a href="/">主页</a>&nbsp;&gt;&nbsp;<a href="/Article">文章中心</a>&nbsp;&gt;&nbsp;<span
                style="color: red">所有文章</span></div>
    </div>
</div>
<!--主题部分结束-->
